﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace BlackHtml5.WebSite.Models.Entity.Common
{
    public class content:NFinal.Struct
    {
		public System.Int64 id {get;set;}
		public System.String module {get;set;}
		public System.String yun {get;set;}
		public System.String domain {get;set;}
		public System.String fileType {get;set;}
		public System.Byte? isSuccess {get;set;}
		public System.Byte? isDeleted {get;set;}
		public System.String localUrl {get;set;}
		public System.String yunUrl {get;set;}
		public System.String keyStr {get;set;}
		public System.String file {get;set;}
		public System.String bucketName {get;set;}
		public System.String accessId {get;set;}
		public System.String accessKey {get;set;}
		public System.String sceretKey {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"id\":");
					tw.Write(id.ToString());
					tw.Write(",");
					tw.Write("\"module\":");
					tw.Write("\"");
					tw.Write(module==null?"null":module);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"yun\":");
					tw.Write("\"");
					tw.Write(yun==null?"null":yun);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"domain\":");
					tw.Write("\"");
					tw.Write(domain==null?"null":domain);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"fileType\":");
					tw.Write("\"");
					tw.Write(fileType==null?"null":fileType);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"isSuccess\":");
					tw.Write(isSuccess==null?"null" : isSuccess.ToString());
					tw.Write(",");
					tw.Write("\"isDeleted\":");
					tw.Write(isDeleted==null?"null" : isDeleted.ToString());
					tw.Write(",");
					tw.Write("\"localUrl\":");
					tw.Write("\"");
					tw.Write(localUrl==null?"null":localUrl);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"yunUrl\":");
					tw.Write("\"");
					tw.Write(yunUrl==null?"null":yunUrl);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"keyStr\":");
					tw.Write("\"");
					tw.Write(keyStr==null?"null":keyStr);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"file\":");
					tw.Write("\"");
					tw.Write(file==null?"null":file);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"bucketName\":");
					tw.Write("\"");
					tw.Write(bucketName==null?"null":bucketName);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"accessId\":");
					tw.Write("\"");
					tw.Write(accessId==null?"null":accessId);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"accessKey\":");
					tw.Write("\"");
					tw.Write(accessKey==null?"null":accessKey);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"sceretKey\":");
					tw.Write("\"");
					tw.Write(sceretKey==null?"null":sceretKey);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
